package org.marsdonne.commons.jpa;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.Path;
import javax.persistence.criteria.Predicate;

@Data
@NoArgsConstructor
public abstract class BasedFieldFilter {
    protected Operator operator;

    public abstract Predicate generateCriteria(CriteriaBuilder builder, Path field);
}
